package com.tpp.controller;

import com.tpp.pojo.baseVo.BaseResult;
import com.tpp.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/index")
@RestController
public class IndexController {

    @Autowired
    IndexService indexService;

    @GetMapping("/index")
    public BaseResult index(){
        return indexService.index();
    }
}
